﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Encapsulation_classwork
{
    class Account
    {
        public int accountId { get; private set; }
        public decimal money { get; private set; }

        public Account (int accountId)
        {
            money = 0;
            this.accountId = accountId;
        }        

        public void ReduceMoney (decimal moneyToTake)
        {
            money -= moneyToTake; 
        }

        public void SetZeroMoney ()
        {
            money = 0;
        }

        public void AddMoney(decimal moneyToAdd)
        {
            money += moneyToAdd;
        }
    }


}
